package com.tt.dp.adapter;

import com.tt.dp.adapter.mdoel.Duck;
import com.tt.dp.adapter.mdoel.Turkey;

public class TurkeyAdapter implements Duck {

    private Turkey turkey;

    public TurkeyAdapter(Turkey turkey) {
        this.turkey = turkey;
    }

    public void quack() {
        this.turkey.gobble();
    }

    public void fly() {
        for (int i = 0; i < 5; i++){
            this.turkey.fly();
        }
    }
}
